<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Models\FictionModel;
use Illuminate\Http\Request;

class FictionController extends Controller
{
    //测试数据api
    public function index(Request $request)
    {
        $data = FictionModel::all();
        return $data;
    }

    //测试详情数据
    public function find($id){
        $data = FictionModel::find($id);
        return $data;
    }
    
}
